body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

#uploadForm {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

input[type="file"] {
  flex: 1;
  padding: 10px;
  border: 2px solid #3498db;
  border-radius: 5px;
}

button {
  padding: 10px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #2980b9;
}

.result-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.image-preview {
  border: 2px dashed #ddd;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#previewImage {
  max-width: 100%;
  max-height: 300px;
}

.classification-result {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 5px;
}

.result-box {
  padding: 15px;
  margin-top: 10px;
  background: white;
  border: 1px solid #eee;
  border-radius: 5px;
  min-height: 100px;
}

.history-section {
  border-top: 2px solid #eee;
  padding-top: 20px;
}

#historyList {
  list-style: none;
  padding: 0;
}

#historyList li {
  padding: 10px;
  margin: 5px 0;
  background: #f8f9fa;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
}